<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			#all>div{
				border: dashed ;
				width: 400px;
				height: 400px;
			}
			#all>div:first-child{
				background-color: white;
				border-radius: 10px;
			}
			#all>div:nth-child(2){
				background-image: url("img/故宫.webp");
				background-repeat: repeat-x;
			}
			#all>div:nth-child(3){
				background: linear-gradient(45deg,red,yellow,purple);
				
			}
			#all>div:nth-child(4){
				
				  background-color: #f0f0f0; /* 例如，浅灰色背景 */
				
				  background-image: url("img/长城.webp"); /* 替换为你的图片路径 */
				  
				  background-size: cover; /* 或者使用 'contain', '100% 100%', 等 */
				  
				box-shadow: 20px 20px 20px gray;
			}
			#all>div:nth-child(5){
				 background-color: rgba(255, 1, 1, 0.5); /* 红色，50% 透明度 */
				
			}
			#all>div:nth-child(5):hover{
				 background-color: rgba(255, 80, 255, 1);
				transform: rotate(45deg);
				width: 500px;
				transition: all 1s; 
			}
		</style>
	</head>
	<body>
		<div id="all">
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
			<div></div>
		</div>
	</body>
</html>